<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>双向绑定</title>
    <script type="text/javascript" src="../vue.js"></script>
</head>
<body>
<div id="app">
    <h1>{{message}}</h1>
    <input type="text" v-model="message">
    <pre>{{$data|json}}</pre>
</div>
<script type="text/javascript">
    new Vue({
        el:"#app",
        data:{
            message:'hello world',
        }
    })
</script>
</body>
</html>